Lancashire - already assured of promotion, but chasing Surrey for the Division Two title - struggled in their LV= County Championship Division Two clash against Essex despite James Anderson taking four wickets, including removing his England captain Alastair Cook for one.